package sessionbeans;

import javax.ejb.Remote;
import entities.RegisteredUser;
import entities.Declares;
import java.util.List;

@Remote
public interface ProfileBeanRemote {

	/**
	 * 
	 * @param userId the specified userId
	 * @return the user corresponding to the specified userId
	 */
	RegisteredUser getUser(String userId);
	
	/**
	 * 
	 * @param userId the specified userId
	 * @return a list of the user's declared abilities and their ratings
	 */
	List<Declares> getAbilities(String userId);
	
	/**
	 * 
	 * @param userId the user sending the request
	 * @param abilityName the name of the new ability to add
	 * @return a String giving information regarding the outcome of the operation
	 */
	String sendAbilityRequest(String userId, String abilityName);
}
